chore: bump monorepo Next.js version to 16.2.0#15992
Conversation
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
| fields.file, | ||
| )) | ||
| } catch { | ||
| throw new APIError('A file name is required.', 400) |
There was a problem hiding this comment.
Existing bug - fixes cryptic JSON.parse errors thrown in server console when uploading file without file name. Instead, we get a proper 400 error
|
|
||
| // Need to get the field state to extract count since field errors | ||
| // are not returned when file is missing or exceeds limit | ||
| const { state: newState } = await getFormState({ |
There was a problem hiding this comment.
New bug - Next.js now complains if we call a server action (getFormState) with a File, so we need to strip it. This is new and was not an issue in 16.2.0-canary.90
| await expect(favicons.nth(1)).toHaveAttribute('sizes', '32x32') | ||
| await expect(favicons.nth(1)).toHaveAttribute('media', '(prefers-color-scheme: dark)') | ||
| await expect(favicons.nth(1)).toHaveAttribute('href', /\/payload-favicon-light\.[a-z\d]+\.png/) | ||
| await expect(favicons.nth(1)).toHaveAttribute('href', /\/payload-favicon-light\.[a-z\d_]+\.png/) |
There was a problem hiding this comment.
file name now has an underscore
| shard, | ||
| workers, | ||
| } = minimist(process.argv.slice(2)) | ||
| } = minimist(process.argv.slice(2), { alias: { g: 'grep' } }) |
There was a problem hiding this comment.
LLMs sometimes use -g instead of --grep, which did not work previously. Not worth a separate PR
DanRibbens
left a comment
There was a problem hiding this comment.
Tests all passing! That is encouraging.
|
🚀 This is included in version v3.80.0 |
This PR does not bump the Next.js version in the templates yet. First, let's run our test suite against 16.2.0 and make sure it's fully compatible.